home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 2207 / 2207.xpi / chrome / cooliris.jar / content / cooliris / options3.xul < prev    next >
Extensible Markup Language  |  2009-12-22  |  13KB  |  294 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3. <?xml-stylesheet href="chrome://browser/skin/browser.css" type="text/css"?>
  4. <?xml-stylesheet href="chrome://cooliris/skin/cooliris.css" type="text/css"?>
  5.  
  6. <window id="cooliris_options" 
  7.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  8.     title="User Preferences"
  9.     onload="cpvw_Prefs.loadOptionsPreviewPrefs();sizeToContent();"
  10.     onkeypress="if (event.keyCode == 27) window.close();"
  11.     buttonlabelaccept="Save"
  12.     minheight="480">
  13.  
  14.     <script type="application/x-javascript" src="chrome://cooliris/content/utils.js" />
  15.     <script type="application/x-javascript">
  16.  
  17.  
  18.         function defaultEnableMesg()
  19.         {
  20.             var mesg;
  21.             if (document.getElementById('cooliris_defaultEnable').checked)
  22.             {
  23.                 document.getElementById('cooliris_globalDisable').checked = true;
  24.                 mesg = "CoolPreviews have been turned off across all websites.";
  25.             }
  26.             else
  27.             {
  28.                 document.getElementById('cooliris_globalDisable').checked = false;
  29.                 mesg = "CoolPreviews will now work all websites except those you explicitly turned off.";
  30.             }
  31.             var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);
  32.             promptService.alert(window, "Done!", mesg);
  33.             //alert(mesg);
  34.         }
  35.  
  36.         function disableEnableMesg()
  37.         {
  38.             document.getElementById('cooliris_defaultEnable').checked = document.getElementById('cooliris_globalDisable').checked;
  39.         }
  40.     </script>
  41.     <vbox style="margin:10px;">
  42.         <tabbox id="cpvw_tabBox" flex="1">
  43.             <tabs>
  44.                 <tab label="Settings"/>
  45.                 <tab label="Search"/>
  46.                 <tab label="On/Off"/>
  47.             </tabs>
  48.             <tabpanels flex="1" style="padding:0px 0px 3px 0px; " >
  49.                 <tabpanel flex="1" orient="vertical">
  50.                     <vbox flex="10" style="padding-left:10px">
  51.                         
  52.                         <hbox style="margin-top:15px">
  53.                             <label value="Show the preview window when you " style="font-weight:bold;" />
  54.                         </hbox>
  55.                         <vbox style="padding-left:20px">
  56.                             <hbox>
  57.                                 <menulist id="cooliris_previewOpenMode" style="width:250px;">
  58.                                     <menupopup>
  59.                                         <menuitem value="icon" label="Mouseover the CoolPreviews Icon"/>
  60.                                         <menuitem value="icon-click" label="Click the CoolPreviews Icon"/>
  61.                                         <menuitem value="direct" label="Mouseover a link"/>
  62.                                         <menuitem value="click" label="Click a link"/>
  63.                                         <menuitem value="hotkey" label="Click CTRL + mouseover a link"/>                                                                
  64.                                     </menupopup>
  65.                                 </menulist>
  66.                             </hbox>
  67.                             <checkbox id="cooliris_fixedLoc" label="Remember the location and size of the preview window"/>
  68.                             <vbox style="margin-top:10px;">
  69.                                 <hbox>                            
  70.                                     <label style="margin-top:3px;" value="TIP: Try keeping the preview window open by clicking the "/>
  71.                                     <vbox style="padding-top:3px;"><image src="chrome://cooliris/skin/new/pin-icon.png"/></vbox>
  72.                                     <label style="margin-top:3px" value=" icon."/>
  73.                                 </hbox>
  74.                                 <label value="Then mouseover more links from your original browser page."/>
  75.                             </vbox>
  76.                         </vbox>
  77.                         <hbox style="margin-top:15px">
  78.                             <label value="Location of CoolPreviews icon " style="font-weight:bold;" />
  79.                         </hbox>
  80.                         <hbox style="padding-left:25px">
  81.                             <radiogroup id="cooliris_fixedIcon" style="width:250px;">
  82.                                 <radio value="right" label="Appears on the right of the link"/>
  83.                                 <radio value="overlink" label="Appears 20px away from my cursor"/>
  84.                             </radiogroup>
  85.                         </hbox>
  86.                         <spacer height="10px"/>
  87.                         <hbox>
  88.                             <label value="Speed Control" style="font-weight:bold;" />
  89.                         </hbox>
  90.                         <spacer height="5px"/>
  91.                         <vbox style="padding-left:25px">
  92.                             <grid>
  93.                                 <columns>
  94.                                     <column flex="1"/>
  95.                                     <column width="160px"/>
  96.                                     <column width="80px"/>
  97.                                 </columns>
  98.                                 <rows>
  99.                                     <row>
  100.                                         <label class="optionsLabel" value="Show CoolPreviews icon:"/>
  101.                                         <scale id="scaleIcon" min="0" max="10" increment="1" pageincrement="1" />
  102.                                         
  103.                                     </row>
  104.                                     <row>
  105.                                         <label class="optionsLabel" value="Open Preview Window:"/>
  106.                                         <scale id="scaleOpenPreview" min="0" max="10" increment="1" pageincrement="1" />
  107.                                         
  108.                                     </row>
  109.                                     <row>
  110.                                         <label class="optionsLabel" value="Close Preview Window:"/>
  111.                                         <scale id="scaleClosePreview" min="0" max="10" increment="1" pageincrement="1"/>
  112.                                         
  113.                                     </row>
  114.                                     <row>
  115.                                         <label class="optionsLabel" value=""/>
  116.                                         <hbox>
  117.                                             <label class="optionsLabel" value="Slow"/>
  118.                                             <spacer flex="1"/>
  119.                                             <label class="optionsLabel" value="Fast"/>
  120.                                         </hbox>
  121.                                     </row>
  122.                                 </rows>
  123.                             </grid>                            
  124.                         </vbox>
  125.                         <hbox style="margin-top:15px">
  126.                             <label value="Theme" style="font-weight:bold;padding-top:3px;" />
  127.                         
  128.                             <radiogroup id="cpvw_theme" orient="horizontal">
  129.                                 <radio id="default" label="Dark"/>
  130.                                 <radio id="white" selected="true" label="Ice"/>
  131.                             </radiogroup>
  132.                         </hbox>                    
  133.                         <!--<hbox style="padding-left:25px">
  134.                                 <checkbox id="cooliris_applyBrowserZoom" label="Use browser's font size setting in preview window"/>
  135.                             </hbox>-->                
  136.                     
  137.                         <spacer height="10px"/>
  138.                         <!--<vbox>
  139.                                 <checkbox label="In slideshow mode, filter out images smaller than" oncommand="cpvw_Prefs.managePiclensFilter();"  id="cooliris_piclensFilter"/>
  140.                                 <hbox id="cooliris_piclens_filter_box">
  141.                                     <spacer width="30px"/>
  142.                                     <vbox>
  143.                                         <hbox>
  144.                                             <label value="Width " style="padding:5px 0px 0px 0px"/>
  145.                                             <textbox id="cooliris_piclens_width" rows="1" cols="10" size="3" maxlength="3"/>
  146.                                             <label value="pixels" style="padding:5px 0px 0px 0px"/>
  147.                                         </hbox>
  148.                                         <hbox>
  149.                                             <label value="Height" style="padding:5px 0px 0px 0px"/>
  150.                                             <textbox id="cooliris_piclens_height" rows="1" cols="10" size="3" maxlength="3"/>
  151.                                             <label value="pixels" style="padding:5px 0px 0px 0px"/>
  152.                                         </hbox>
  153.                                     </vbox>
  154.                                 </hbox>                            
  155.                             </vbox>-->
  156.                     </vbox>
  157.                 </tabpanel>
  158.                 <tabpanel flex="1" orient="vertical">
  159.                     <vbox flex="2">
  160.                         <spacer height="15px"/>
  161.                         
  162.                         <vbox>
  163.                             <!--<hbox>
  164.                                     <checkbox id="cooliris_inlineSubsearch" label="Display the preview icon when I highlight a phrase on any website"/>
  165.                                 </hbox>-->
  166.                             <hbox>
  167.                                 <label value="Show search toolbar" style="padding-top:3px;font-weight:bold;"></label>
  168.                                 <radiogroup id="cpvw_quicksearch" orient="horizontal">
  169.                                     <radio id="cpvw_quicksearch_show" label="Show"/>
  170.                                     <radio id="cpvw_quicksearch_hide" label="Hide"/>
  171.                                 </radiogroup>
  172.                                 <!--<checkbox id="cooliris_subsearchBar" label="Show my list of searchable sites at the top of the preview window"/>-->
  173.                             </hbox>    
  174.                         
  175.                         </vbox>
  176.                         <hbox style="margin:5px 0">
  177.                             <label value="Choose sites to show in the search toolbar" style="font-weight:bold;" />
  178.                         </hbox>
  179.                         
  180.                         <hbox flex="1" style="-moz-box-pack:center;height:150px">
  181.                             <vbox style="width:190px">                            
  182.                                 <tree id="cooliris_contextSiteTree" flex="6"  onselect="cpvw_contextSitesTreeView.selection.invalidateSelection();cpvw_contextSitesTreeView.editWebsite();">
  183.                                     <treecols>                                
  184.                                         <treecol id="cooliris_contextSiteTree_name" label="Don't Show" flex="1" persist="width ordinal hidden sortDirection"/>
  185.                                     </treecols>
  186.                                     <treechildren/>
  187.                                 </tree>                            
  188.                             </vbox>                        
  189.                             <vbox pack="center">
  190.                                 <button id="cooliris_selectWebsite" class="cooliris-options-select" style="min-width:0px"
  191.                                     oncommand="cpvw_contextSitesTreeView.selectWebsites('show')"/>
  192.                                 <spacer height="3px"/>
  193.                                 <button id="cooliris_deselectWebsite" class="cooliris-options-deselect"  style="min-width:0px"
  194.                                     oncommand="cpvw_contextSitesTreeView.deselectWebsites('hide')"/>
  195.                             </vbox>
  196.                             <vbox style="width:190px">                            
  197.                                 <tree id="cooliris_contextSiteTreeSelected" flex="6" onselect="cpvw_contextSitesTreeView.selection.invalidateSelection();cpvw_contextSitesTreeView.editWebsite();">
  198.                                     <treecols>
  199.                                         <treecol id="cooliris_contextSiteTree_name" label="Show" flex="1" persist="width ordinal hidden sortDirection"/>
  200.                                     </treecols>
  201.                                     <treechildren/>
  202.                                 </tree>
  203.  
  204.                             </vbox>
  205.                         </hbox>
  206.                         <hbox style="padding:5px 0 5px 25px">
  207.                             <button id="btnRemoveWebsite" label="Remove Permanently" oncommand="cpvw_contextSitesTreeView.removeWebsite()"/>
  208.                         </hbox>
  209.                         <hbox style="padding:5px 0 5px 25px">
  210.                             <label value="Click here to add your own searchable websites" style="color:blue;cursor:pointer;text-decoration:underline;" onclick="document.getElementById('addBox').style.visibility = 'visible';"/>
  211.                         </hbox>
  212.                     
  213.                     
  214.                         <vbox id="addBox" style="visibility:hidden;">
  215.                             <hbox>
  216.                                 <label style="padding:5px 0 0px 10px" value="1. In your normal Firefox window, visit a website you want to add."/>                                
  217.                             </hbox>
  218.                             <vbox  >
  219.                                 <hbox style="padding:5px 0 0px 10px">
  220.                                     <label  value="2. Using that site's search box, search for the word"/> 
  221.                                     <label style="text-decoration:italic;font-weight:bold" value="cool"/>
  222.                                     <description>
  223.                                      and then copy and  
  224.                                     </description>
  225.                                 </hbox>    
  226.                                 <description style="padding:0px 0 0px 24px">paste the resulting url from that search in to the box below</description>
  227.                                 <textbox style="margin:0px 20px 0px 24px" id="siteUrl" value="http://" />
  228.                             </vbox>
  229.                             <vbox>
  230.                                 <hbox style="padding:5px 0 0px 10px">
  231.                                     <label  value="3. Enter the name for that website"/>
  232.                                 </hbox>    
  233.                                 <textbox id="siteName" style="margin:0px 20px 0px 24px"/>
  234.                             </vbox>
  235.                             <!--<vbox>
  236.                                     <hbox style="padding:5px 0 0px 10px">
  237.                                         <label  value="4. Enter the url for the website icon"/>
  238.                                     </hbox>    
  239.                                     <textbox id="siteIcon" style="margin:0px 20px 0px 24px" value="" oninput="cpvw_contextSitesTreeView.isIconEdited = true;"/>
  240.                                 </vbox>-->
  241.                             <hbox style="-moz-pack:left">                                
  242.                                 <spacer width="20"/>
  243.                                 <button id="btnAddWebsite" label="Add" oncommand="cpvw_contextSitesTreeView.addWebsite()"/>                                
  244.                                 <button id="btnClear" label="Clear" oncommand="cpvw_contextSitesTreeView.clearDetails()"/>
  245.                                 <spacer width="20"/>
  246.                                 <label value="Help" style="color:blue;cursor:pointer;margin-top:7px" onclick="cpvw_contextSitesTreeView.openHelp();"/>
  247.                             </hbox>
  248.                         </vbox>
  249.  
  250.                         <spacer height="5px"/>
  251.                         <!--<listbox id="cooliris_contextList" rows="6"  seltype="multiple" hidden="true"/>-->
  252.                     </vbox>            
  253.                 </tabpanel>
  254.                 <tabpanel flex="1" orient="vertical">
  255.                     <vbox flex="2">
  256.                         <spacer height="15px"/>
  257.                         <vbox style="padding-left:25px">
  258.                             <vbox>
  259.                                 <label value="Turn CoolPreviews on/off" style="padding-top:3px;" />
  260.                                 <radiogroup orient="horizontal" id="cooliris_globalDisable">
  261.                                     <radio id="cooliris_globalDisable_on" label="On" accesskey="O" selected="true"/>
  262.                                     <radio id="cooliris_globalDisable_off" label="Off"  accesskey="f" />                              
  263.                                 </radiogroup>
  264.                                 <spacer height="25px"/>
  265.                                 <description style="font-weight:bold">Disable CoolPreviews on specific sites</description>
  266.                                 <hbox>
  267.                                     <description>Click the</description>
  268.                                     <image src="chrome://cooliris/skin/new/coolpreviews-enabled.png"/>                                
  269.                                     <description>icon on the status bar found at the lower right of your browser. </description>
  270.                                 </hbox>
  271.                                 <description>Can't find it? Go to your Firefox menu bar, click View, and then select Status Bar.</description>
  272.                             </vbox>
  273.                         
  274.                         </vbox>
  275.                     </vbox>            
  276.                 </tabpanel>
  277.  
  278.             </tabpanels>
  279.         </tabbox>
  280.     
  281.         <!--buttons="accept,cancel"
  282.             ondialogaccept="return cpvw_Prefs.doOKNew();"
  283.             ondialogcancel="return cpvw_Prefs.doCancel();"
  284.             -->
  285.         <hbox style="margin-top:5px">
  286.             <button label="Restore Default Settings" onclick="cpvw_Prefs.restoreDefaults();"/>
  287.             <spacer flex="1"/>
  288.             <button label="Save" onclick="cpvw_Prefs.doOKNew();"/>
  289.             <button label="Cancel" onclick="cpvw_Prefs.doCancel();"/>
  290.         </hbox>
  291.     </vbox>
  292. </window>
  293.  
  294.